GBML manual / Constants

BACKDROP_DAWN

A sunrise: soft lilac-blue at the top, then pink and peach, with a warm pale gold along the bottom.

Works differently on Game Boy - On the Game Boy the sky becomes bands of its 4 shades (see screen_backdrop), so the sky shows only where the picture leaves the shade for the sky; the sky has to be named in the call.

Works differently on Game Boy Color - On the Game Boy Color the sky's colors go row by row into the picture's first color (see screen_backdrop), so the sky shows only where the picture uses that color; it has to be named in the call.

On other consoles this differs: see Side by side and How the consoles differ.

Syntax

BACKDROP_DAWN: constant

<!-- GENERATED by tools/gbabel_looks.py from its LOOKS registry. Never edit this page: change the registry and re-run it. -->

Description

Names the sunrise sky, for screen_backdrop. The backdrop is the color that fills the screen behind every picture, and with this look it changes on every row: soft lilac-blue at the top, then pink, then peach, ending in a warm, pale gold. It is the gentle, bright cousin of BACKDROP_SUNSET - nothing in it is dark.

It is made for a calm start: a menu, a morning scene, the first room of a game. Only the places where nothing else is drawn show it, so a floor, a wall or a picture drawn on top hides it. strength picks how rich the colors are: 1 is almost white with a blush of pink, 2 is in between, and 3 is the full pastel.

A real capture, three pictures of the same sunrise sky - strength 1 (almost white with a blush of pink), strength 2 (in between) and strength 3 (full pastel pink and peach) - the same rows each time, with a lighthouse on dark ground in frontA real capture, three pictures of the same sunrise sky - strength 1 (almost white with a blush of pink), strength 2 (in between) and strength 3 (full pastel pink and peach) - the same rows each time, with a lighthouse on dark ground in front
A real capture, three pictures of the same sunrise sky - strength 1 (almost white with a blush of pink), strength 2 (in between) and strength 3 (full pastel pink and peach) - the same rows each time, with a lighthouse on dark ground in front

One place in the sky, three strengths: 1, 2 and 3 from left to right. Real pictures from a Game Boy Advance ROM, each one a slice of the screen.

The sky is drawn twice as tall as the screen, and speed slides the screen down it and back again, so the morning seems to get warmer as the sky moves. A speed of 0 holds one view still; 0.25 takes about ten seconds to go from the lilac top to the golden bottom.

A real capture, 12 frames played in a loop - the sky changing from soft lilac-blue through pink and peach to a pale gold as it slides, while the lighthouse and the ground in front of it never changeA real capture, 12 frames played in a loop - the sky changing from soft lilac-blue through pink and peach to a pale gold as it slides, while the lighthouse and the ground in front of it never change
A real capture, 12 frames played in a loop - the sky changing from soft lilac-blue through pink and peach to a pale gold as it slides, while the lighthouse and the ground in front of it never change

The sky sliding, sped up: twelve real pictures twelve frames apart, played 150 milliseconds each. The lighthouse and the ground never change. This picture is an animated PNG; a viewer that cannot animate shows its first frame, the top of the sky.

Example

screen_backdrop(BACKDROP_DAWN, 3, 0.25);

A morning that slowly warms up. Call it once, for example when the room starts - it keeps going by itself until you call screen_backdrop(BACKDROP_NONE, 0, 0) or a room is loaded.

See also: screen_backdropBACKDROP_NONEBACKDROP_SUNSET